package cn.laowen.system.mapper;

import cn.laowen.system.domain.Role;
import cn.laowen.basic.mapper.BasicMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author laowen
 * @since 2022-06-21
 */
public interface RoleMapper extends BasicMapper<Role> {

    /**
     * 根据oleId删除t_role_menu
     * @param id
     */
    void removeRoleMenuByRoleId(Long id);

    /**
     * 根据oleId删除t_role_permission
     * @param id
     */
    void removeRolePermissionByRoleId(Long id);

    /**
     * 保存数据到t_role_menu
     * @param role
     */
    void saveRoleMenu(Role role);

    /**
     * 保存数据到t_role_permission
     * @param role
     */
    void saveRolePermission(Role role);
}
